import type { IPageQuery } from '@/api/interface'

export namespace ISysDept {
  // 查询条件
  export interface Query extends IPageQuery {
    name?: string
  }

  // 编辑form表单
  export interface Form {
    id?: number
    deptName?: string
    pid?: number
    deptSort?: number
    remark?: string
    leader: string
    mobile: string
    email: string
    isLock: string
  }

  // list或detail返回结构
  export interface Row {
    id: number
    pid: number
    deptName: string
    deep?: number
    deptSort?: number
    remark?: string
    isLock?: string
    leader: string
    mobile: string
    email: string
  }

  export interface Tree {
    id: number
    pid: number
    deptName: string
    deep?: number
    sort?: number
    children: Tree[]
    userTotal?: number
  }


  export interface DeptSetting {
    userIds: number[]
    deptId: number
  }
}
